﻿<%@ Page PathInChannel="album/{ID}{Page}{Ext}" Object="Album" %>
<%@ OutputCache Duration="86400" VaryByParam="none" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<!-- TemplateInfo codeOutsideHTMLIsLocked="true" -->
<ali:Get ID="Album" Object="Album" PageID="Request.QueryString['ID']" ForMeta="true" />
<ali:List ID="PreviousAlbum" Object="Album" Page="1" PageSize="1" Condition="IsDeleted=false and IsChecked=true and InnerID <> Album[InnerID] and UpdateTime < Album[UpdateTime]" Sort="UpdateTime DESC" />
<ali:List ID="NextAlbum" Object="Album" Page="1" PageSize="1" Condition="IsDeleted=false and IsChecked=true and InnerID <> Album[InnerID] and UpdateTime > Album[UpdateTime]" Sort="UpdateTime ASC" />
<ali:Get ID="Config" Object="InstanceConfig" Operation="GetBasicSettings()" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="keywords" content="<%=MetaKeywords%>" />
<meta name="description" content="<%=MetaDescription%>" />
<title><%=Album[Name]%> - 影集 - <%=Channel[Name]%> - <%=Site[Name]%></title>
<link rel="stylesheet" type="text/css" href="<%=CommonPath%>jquery/themes/lightness/all.css" />
<ali:Comment><link rel="stylesheet" type="text/css" href="S01/CHS/css/common.css" /></ali:Comment>
<link rel="stylesheet" type="text/css" href="<%=CssPath%>common.css" />
<script type="text/javascript">
var _page = "album";
var _webPath = "<%=WebPath%>";
var _lang = "<%=PageLang%>";
var _albumID = "<%=Album[InnerID]%>";
var _albumGuid = "<%=Album[ID]%>";
var _pictureID = "<%=Picture[InnerID]%>";
var _pictureGuid = "<%=Picture[ID]%>";
var _id = _albumID;
var _guid = _albumGuid;
var _albumCommentPage = "<%=BuildUrl("ajax_album_comment")%>";
var _pictureCommentPage = "<%=BuildUrl("ajax_picture_comment")%>";
var _commentPage = _albumCommentPage;
var _albumDefaultThumbnail = "<%=Config[AlbumDefaultThumbnail]%>";
var _pageNumber = "<%=PageNumber%>";
var _checkComment = <%=Config[CheckComment]%>;
var _lang_name = "名称不能为空！";
var _lang_password = "密码不能为空！";
var _lang_content = "内容不能为空！";
var _lang_cant_login = "会员名或密码有误！";
var _lang_cant_post_comment = "发表评论失败！";
var _lang_post_comment_success = "发表评论成功！";
</script>
</head>
<body>
<!-- TemplateBeginEditable name="菜单" -->
<div class="Wrap">
	<ali:Menu Condition="IsDisplay=true and CategoryID IS NULL and ParentID IS NULL">
		<div class="Menu">
			<ali:Record>
				<ali:Select>
					<ali:Yes>
						<a href="<%=URL%>" target="<%=Target%>" title="<%=Name%>"<%=Style%>><strong><%=Name%></strong></a>
					</ali:Yes>
					<ali:No>
						<a href="<%=URL%>" target="<%=Target%>" title="<%=Name%>"<%=Style%>><%=Name%></a>
					</ali:No>
				</ali:Select>
				<ali:Separator>|</ali:Separator>
			</ali:Record>
		</div>
	</ali:Menu>
</div>
<!-- TemplateEndEditable -->

<!-- TemplateBeginEditable name="广告位：图片 - Banner" -->
<div class="Wrap">
	<div class="Ad1">
		<ali:Ad Guid="{D17A62D0-1252-4570-A435-34DE61AE41D4}">
			<a href="http://www.alibaza.com" target="_blank"><img src="<%=ImagePath%>ad/ad1.jpg" alt="Ad" style="width:980px;height:100px" /></a>
		</ali:Ad>
	</div>
</div>
<!-- TemplateEndEditable -->

<!-- TemplateBeginEditable name="影集类别" -->
<ali:List Object="AlbumCategory" Condition="IsDisplay=true and ParentID IS NULL">
	<div class="Wrap">
		<div class="SubMenu">
			<ali:Record>
				<a href="<%=BuildUrl()%>" title="<%=Name%>"<%=Style%>><%=Name%></a>
				<ali:Separator>|</ali:Separator>
			</ali:Record>
		</div>
	</div>
</ali:List>
<!-- TemplateEndEditable -->

<!-- TemplateBeginEditable name="搜索" -->
<div class="Wrap">
	<div class="Search">
		<form id="Search" action="" target="_blank">
			<input type="radio" name="Search" id="PictureSearch" value="<%=BuildUrl("picture_search")%>" /><label for="PictureSearch">图片</label>
			<input type="radio" name="Search" id="AlbumSearch" value="<%=BuildUrl("album_search")%>" checked="checked" /><label for="AlbumSearch">影集</label>
			<input type="radio" name="Search" id="PersonSearch" value="<%=BuildUrl("person_search")%>" /><label for="PersonSearch">人物</label>
			<input type="text" name="q" size="40" class="Text <%=PageLang%>Font" />
			<input type="submit" value="搜 索" class="Submit" />
		</form>
	</div>
</div>
<!-- TemplateEndEditable -->

<div class="Wrap">
	<!-- TemplateBeginEditable name="广告位：图片 - 搜索下方 - 左" -->
	<div class="Ad2">
		<ali:Ad Guid="{7438BF13-E424-4178-8D88-7E91FD89A112}">
			<a href="http://www.alicms.cn"><img src="<%=ImagePath%>ad/ad4.gif" alt="Ad" style="width:250px;height:60px" /></a>
		</ali:Ad>
	</div>
	<!-- TemplateEndEditable -->
	<!-- TemplateBeginEditable name="广告位：图片 - 搜索下方 - 中" -->
	<div class="Ad2">
		<ali:Ad Guid="{A461D017-5885-4ed2-8FA1-04CF7F997B44}">
			<a href="http://www.alicms.cn"><img src="<%=ImagePath%>ad/ad7.gif" alt="Ad" style="width:480px;height:60px" /></a>
		</ali:Ad>
	</div>
	<!-- TemplateEndEditable -->
	<!-- TemplateBeginEditable name="广告位：图片 - 搜索下方 - 右" -->
	<div class="Ad2">
		<ali:Ad Guid="{B1A4D38B-58D1-4fc6-B88B-A8EE7044277F}">
			<a href="http://www.alicms.cn"><img src="<%=ImagePath%>ad/ad8.gif" alt="Ad" style="width:250px;height:60px" /></a>
		</ali:Ad>
	</div>
	<!-- TemplateEndEditable -->
</div>

<!-- TemplateBeginEditable name="路径" -->
<div class="Wrap">
	<div class="Path">当前位置：
		<ali:Path IncludeCurrentChannel="True">
			<ali:Record>
				<a href="<%=URL%>" title="<%=Name%>"><%=Name%></a> &gt; 
			</ali:Record>
		</ali:Path>
		<a href="<%=BuildUrl("album_list")%>" title="影集列表">影集列表</a> &gt; <%=Album[Name]%>
	</div>
</div>
<!-- TemplateEndEditable -->

<div class="Wrap">
	<div class="Block4">
		<h4>影集简介</h4>
		<div class="Block10"><%=Album[Description]%></div>
		<ali:List ID="Picture" Object="Picture" Page="PageNumber" PageSize="1" Condition="IsDeleted=false and IsChecked=true and AlbumPageIDs LIKE '%|' + Request.QueryString['ID'] + '|%'" Sort="UpdateTime ASC">
			<ali:Record>
				<h1><%=Name%></h1>
				<div class="Block7">
					<p>
						<%If PreviousAlbum[Count] == 1%>
							<a href="<%=BuildUrl(null, null, "Page=1&PageTemplate=" + PreviousAlbum[PageTemplate] + "&ID=" + PreviousAlbum[PageID] + "&Ext=" + PreviousAlbum[PageExtension])%>">上一个影集</a> 
						<%EndIf%>
						<%If PageNumber > 1%>
							<a href="<%=BuildUrl(null, null, "Page=" + (PageNumber - 1))%>" id="PrevPage">上一个</a> 
						<%EndIf%>
						<%If PageNumber < RecordCount%>
							<a href="<%=BuildUrl(null, null, "Page=" + (PageNumber + 1))%>">下一个</a> 
						<%EndIf%>
						<%If NextAlbum[Count] == 1%>
							<a href="<%=BuildUrl(null, null, "Page=1&PageTemplate=" + NextAlbum[PageTemplate] + "&ID=" + NextAlbum[PageID] + "&Ext=" + NextAlbum[PageExtension])%>">下一个影集</a> 
						<%EndIf%>
					</p>
					<%If PageNumber < RecordCount%>
						<a href="<%=BuildUrl(null, null, "Page=" + (PageNumber + 1))%>" id="NextPage"><img id="Picture" src="<%=URL%>" alt="<%=Name%>" /></a>
					<%ElseIf NextAlbum[Count] == 1%>
						<a href="<%=BuildUrl(null, null, "Page=1&PageTemplate=" + NextAlbum[PageTemplate] + "&ID=" + NextAlbum[PageID] + "&Ext=" + NextAlbum[PageExtension])%>" id="NextPage"><img id="Picture" src="<%=URL%>" alt="<%=Name%>" /></a>
					<%Else%>
						<a href="<%=BuildUrl("album_list")%>" id="NextPage"><img id="Picture" src="<%=URL%>" alt="<%=Name%>" /></a>
					<%EndIf%>
					<p>
						<%If PreviousAlbum[Count] == 1%>
							<a href="<%=BuildUrl(null, null, "Page=1&PageTemplate=" + PreviousAlbum[PageTemplate] + "&ID=" + PreviousAlbum[PageID] + "&Ext=" + PreviousAlbum[PageExtension])%>">上一个影集</a> 
						<%EndIf%>
						<%If PageNumber > 1%>
							<a href="<%=BuildUrl(null, null, "Page=" + (PageNumber - 1))%>">上一个</a> 
						<%EndIf%>
						<%If PageNumber < RecordCount%>
							<a href="<%=BuildUrl(null, null, "Page=" + (PageNumber + 1))%>">下一个</a> 
						<%EndIf%>
						<%If NextAlbum[Count] == 1%>
							<a href="<%=BuildUrl(null, null, "Page=1&PageTemplate=" + NextAlbum[PageTemplate] + "&ID=" + NextAlbum[PageID] + "&Ext=" + NextAlbum[PageExtension])%>">下一个影集</a> 
						<%EndIf%>
					</p>

					<pre><%=Description%></pre>

					<!-- TemplateBeginEditable name="广告位：图片 - picture - 图片下方" -->
					<div class="Ad15">
						<ali:Ad Guid="{30FB0EA1-AAD4-4c45-954A-9E2BAC155BE7}">
							<a href="http://www.alicms.cn"><img src="<%=ImagePath%>ad/ad7.gif" alt="Ad" style="width:468px;height:60px" /></a>
						</ali:Ad>
					</div>
					<!-- TemplateEndEditable -->
				</div>		
			</ali:Record>
		</ali:List>
		<div class="Bottom3"></div>
		
		<%If Convert.ToBoolean(Config[EnableComment])%>
			<ul class="TabMenu">
				<li class="Selected"><a><span>对影集的评论<label id="CommentCount">( 0 )</label></span></a></li>
				<li><a><span>对图片的评论</span></a></li>
			</ul>
			<div class="Block11">
				<!-- TemplateBeginEditable name="评论列表" -->
				<div id="Comment"></div>
				<!-- TemplateEndEditable -->
				
				<!-- TemplateBeginEditable name="广告位：图片 - 评论下方" -->
				<div class="Ad20">
					<ali:Ad Guid="{9AF14818-D52E-4bae-B048-2120370B53AE}">
						<a href="http://www.alicms.cn"><img src="<%=ImagePath%>ad/ad7.gif" alt="Ad" style="width:468px;height:60px" /></a>
					</ali:Ad>
				</div>
				<!-- TemplateEndEditable -->
				
				<!-- TemplateBeginEditable name="评论表单" -->
				<form id="CommentForm" action="">
					<textarea name="Content" cols="74" rows="7" class="<%=PageLang%>Font"></textarea><br />
					<%If Manager.HasRight("", InstanceID, PageLang, "AlbumComment", "Add")%>
						<input type="checkbox" name="Anonymous" id="Anonymous" checked="checked" /><label for="Anonymous">匿名</label>
					<%Else%>
						<input type="checkbox" name="Anonymous" id="Anonymous" style="display:none" />
					<%EndIf%>
					用户名：<input type="text" size="20" name="Name" class="<%=PageLang%>Font" />
					<label id="PasswordLabel">密码：<input type="password" size="20" name="Password" class="CHSFont" /></label>
					<%If UserChannel != null%>
						<a href="<%=BuildUrl(UserChannel, "register", null)%>" target="_blank" title="新用户">新用户?</a>
					<%EndIf%>
					<input type="submit" value="提交评论" />
					<input type="hidden" name="ToID" />
				</form>
				<!-- TemplateEndEditable -->
			</div>
		<%EndIf%>
	</div>
	<div class="Block5 Margin1">
		<!-- TemplateBeginEditable name="广告位：图片 - 侧栏顶部" -->
		<div class="Ad80">
			<ali:Ad Guid="{FF7E95C0-62C5-44ab-A60A-54256E304224}">
				<a href="http://www.alicms.cn"><img src="<%=ImagePath%>ad/ad8.gif" alt="Ad" style="width:220px;height:60px" /></a>
			</ali:Ad>
		</div>
		<!-- TemplateEndEditable -->
		
		<h4>影集信息</h4>
		<div class="Block14">
			<p>
				<a href="" id="AlbumUp"><img src="<%=ImagePath%>up_arrow.gif" alt="顶" /> 顶 (<span></span>)</a>
				<a href="" id="AlbumDown"><img src="<%=ImagePath%>down_arrow.gif" alt="踩" /> 踩 (<span></span>)</a>
			</p>
			<label>浏览：</label><span id="AlbumHitCount"></span>
			<br />
			<label>类别：</label>
			<%If !Guid.Equals(Album[CategoryID], Guid.Empty)%>
				<a href="<%=BuildUrl("album_category", "PageTemplate=" + Album[CategoryPageTemplate] + "&ID=" + Album[CategoryPageID] + "&Ext=" + Album[CategoryPageExtension])%>" title="<%=Album[CategoryName]%>"><%=Album[CategoryName]%></a>
			<%EndIf%>
			<br />
			<label>人物：</label>
			<ali:List Source="Manager.SplitToTable(Album[PersonNames], Album[PersonPageTemplates], Album[PersonPageIDs], Album[PersonPageExtensions])">
				<ali:Record>
					<a href="<%=BuildUrl("person", "PageTemplate=" + [1] + "&ID=" + [2] + "&Ext=" + [3])%>" title="<%=[0]%>"><%=[0]%></a>
				</ali:Record>
			</ali:List>
			<br />
			<label>标签：</label>
			<ali:List Source="Manager.SplitToTable(Album[TagNames], Album[TagPageTemplates], Album[TagPageIDs], Album[TagPageExtensions])">
				<ali:Record>
					<a href="<%=BuildUrl("album_tag", "PageTemplate=" + [1] + "&ID=" + [2] + "&Ext=" + [3])%>" title="<%=[0]%>"><%=[0]%></a>
				</ali:Record>
			</ali:List>
		</div>
		<div class="Bottom2"></div>
		<h4>图片信息</h4>
		<div class="Block14">
			<p>
				<a href="" id="PictureUp"><img src="<%=ImagePath%>up_arrow.gif" alt="顶" /> 顶 (<span></span>)</a>
				<a href="" id="PictureDown"><img src="<%=ImagePath%>down_arrow.gif" alt="踩" /> 踩 (<span></span>)</a>
			</p>
			<p><a href="" id="Error">报错 (<span></span>)</a></p>
			<label>浏览：</label><span id="PictureHitCount"></span>
			<br />
			<label>类别：</label>
			<%If !Guid.Equals(Picture[CategoryID], Guid.Empty)%>
				<a href="<%=BuildUrl("picture_category", "PageTemplate=" + Picture[CategoryPageTemplate] + "&ID=" + Picture[CategoryPageID] + "&Ext=" + Picture[CategoryPageExtension])%>" title="<%=Picture[CategoryName]%>"><%=Picture[CategoryName]%></a>
			<%EndIf%>
			<br />
			<label>人物：</label>
			<ali:List Source="Manager.SplitToTable(Picture[PersonNames], Picture[PersonPageTemplates], Picture[PersonPageIDs], Picture[PersonPageExtensions])">
				<ali:Record>
					<a href="<%=BuildUrl("person", "PageTemplate=" + [1] + "&ID=" + [2] + "&Ext=" + [3])%>" title="<%=[0]%>"><%=[0]%></a>
				</ali:Record>
			</ali:List>
			<br />
			<label>标签：</label>
			<ali:List Source="Manager.SplitToTable(Picture[TagNames], Picture[TagPageTemplates], Picture[TagPageIDs], Picture[TagPageExtensions])">
				<ali:Record>
					<a href="<%=BuildUrl("picture_tag", "PageTemplate=" + [1] + "&ID=" + [2] + "&Ext=" + [3])%>" title="<%=[0]%>"><%=[0]%></a>
				</ali:Record>
			</ali:List>
			<br />
			<label>影集：</label>
			<ali:List Source="Manager.SplitToTable(Picture[AlbumNames], Picture[AlbumPageTemplates], Picture[AlbumPageIDs], Picture[AlbumPageExtensions])">
				<ali:Record>
					<a href="<%=BuildUrl("album", "PageTemplate=" + [1] + "&ID=" + [2] + "&Ext=" + [3])%>" title="<%=[0]%>"><%=[0]%></a>
				</ali:Record>
			</ali:List>
		</div>
		<div class="Bottom2"></div>
		
		<!-- TemplateBeginEditable name="点击排行" -->
		<h4>点击排行</h4>
		<ali:List Object="Album" Page="1" PageSize="10" Condition="IsDeleted=false and IsChecked=true" Sort="HitCount DESC">
			<ul class="List5">
				<ali:Record>
					<li><a href="<%=BuildUrl()%>" title="<%=Name%>" class="No<%=Index + 1%>"><%=Name%></a><span><%=HitCount%></span></li>
				</ali:Record>
			</ul>
		</ali:List>
		<div class="Bottom2"></div>
		<!-- TemplateEndEditable -->
		
		<!-- TemplateBeginEditable name="最新更新" -->
		<h4>最新更新</h4>
		<ali:List Object="Album" Page="1" PageSize="10" Condition="IsDeleted=false and IsChecked=true" Sort="UpdateTime DESC">
			<ul class="List2">
				<ali:Record>
					<li><a href="<%=BuildUrl()%>" title="<%=Name%>"><%=Name%></a><span><%=Convert.ToDateTime(UpdateTime).ToString("yyyy-MM-dd")%></span></li>
				</ali:Record>
			</ul>
		</ali:List>
		<div class="Bottom2"></div>
		<!-- TemplateEndEditable -->

		<!-- TemplateBeginEditable name="广告位：图片 - 侧栏底部" -->
		<h4></h4>
		<div class="Block6">
			<div class="Ad9">
				<ali:Ad Guid="{A12657F4-F288-437c-BDB2-4EBD90D4917B}">
					<a href="http://www.alicms.cn"><img src="<%=ImagePath%>ad/ad14.gif" alt="Ad" style="width:200px;height:200px" /></a>
				</ali:Ad>
			</div>
		</div>
		<div class="Bottom2"></div>
		<!-- TemplateEndEditable -->			
	</div>
</div>

<!-- TemplateBeginEditable name="广告位：图片 - 网页底部" -->
<div class="Wrap">
	<div class="Ad10">
		<ali:Ad Guid="{DC68E4CB-5142-470f-9A5D-B641412FC241}">
			<a href="http://www.alicms.cn"><img src="<%=ImagePath%>ad/ad10.jpg" alt="Ad" style="width:980px;height:70px" /></a>
		</ali:Ad>
	</div>
</div>
<!-- TemplateEndEditable -->

<!-- TemplateBeginEditable name="友情连接" -->
<ali:List Mark="System" Object="Link" Condition="IsChecked=true">
	<div class="Wrap">
		<div class="Link">
			<h1>友情链接</h1>
			<ul>
				<ali:Record>
					<li>
						<%If Convert.IsDBNull(Logo)%>
							<a href="<%=URL%>" target="_blank" title="<%=Name%>"><%=Name%></a>
						<%Else%>
							<a href="<%=URL%>" target="_blank" title="<%=Name%>"><img src="<%=Logo%>" alt="<%=Name%>" /></a>
						<%EndIf%>
					</li>
				</ali:Record>
			</ul>
		</div>
	</div>
</ali:List>
<!-- TemplateEndEditable -->

<div class="Wrap">
	<div class="Footer">
		<!-- TemplateBeginEditable name="脚注菜单" -->
		<ali:Menu Condition="IsDisplay=true and CategoryID={BAC035A8-F6BB-4772-8D51-A7F4F3AB7AD3}">
			<ali:Record>
				<a href="<%=URL%>" target="<%=Target%>" title="<%=Name%>"<%=Style%>><%=Name%></a>
				<ali:Separator>|</ali:Separator>
			</ali:Record>
			<hr size="1" />
		</ali:Menu>
		<!-- TemplateEndEditable -->
	
		<%=Footer%>
	</div>
</div>

<script type="text/javascript" src="<%=CommonPath%>jquery/core.js"></script>
<script type="text/javascript" src="<%=CommonPath%>jquery/ui.js"></script>
<script type="text/javascript" src="<%=CommonPath%>utility.js"></script>
<%If PageLang == "UYG" || PageLang == "KZA" || PageLang == "KGA"%>
	<script type="text/javascript" src="<%=CommonPath%>IlgharIme.js"></script>
<%EndIf%>
<script type="text/javascript" src="<%=JsPath%>common.js"></script>
<%=StatisticsCode%>
</body>
</html>
